package org.zk.dao;

import org.zk.entity.Comments;

import java.util.List;

public interface CommentsMapper {


    /**
     * 根据商品id查找其所有评论
     * @param goodsId
     * @return
     */
    List<Comments> selectCommentsByGoodsId(Integer goodsId);

    /**
     * 插入一条新评论
     * @param comment
     * @return
     */
    Integer insertComments(Comments comment);

}
